package com.coolbi.onsupai.core.mapper;

import java.util.Map;

import com.coolbi.onsupai.core.entity.Customer;

/**
 * @Description Customer Mapper 客户Mapper映射类
 * @author for2cold
 * @codeDate 2012-6-19 上午10:37:01
 *
 */
public interface CustomerMapper extends BaseMapper<Customer> {

	/**检测手机号码是否已被注册*/
	public int countByTel(String tel);
	
	/**检测电子邮箱是否已被注册*/
	public int countByEmail(String email);
	
	/**检测客户昵称是否已被注册*/
	public int countByUserName(String userName);
	
	/**检测QQ号码是否已被注册*/
	public int countByQQNumber(String qqNumber);
	
	/**
	 * 修改客户交易信息
	 * @param parameter 参数集合
	 * @return
	 */
	public int updateTrade(Map<String, Object> parameter);
}
